package com.ruoyi.personnel.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 登录信息对象 e_logininformation
 *
 * @author ruoyi
 * @date 2024-11-21
 */
@Data
@TableName("e_login_information")
public class ELoginInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 登录信息主键 */
    private Long id;

    /** 登录账号 */
    @Excel(name = "登录账号")
    private String username;

    /** 登录密码 */
    @Excel(name = "登录密码")
    private String loginPassword;

    /** 支付密码 */
    @Excel(name = "支付密码")
    private String paymentPassword;

    /** 登录密码状态(0是未设置，1是已设置) */
    @Excel(name = "登录密码状态(0是未设置，1是已设置)")
    private Long loginPasswordStatus;

    /** 支付密码状态(0是未设置，1是已设置) */
    @Excel(name = "支付密码状态(0是未设置，1是已设置)")
    private Long paymentPasswordStatus;

    /** 最近登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最近登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setLoginPassword(String loginPassword)
    {
        this.loginPassword = loginPassword;
    }

    public String getLoginPassword()
    {
        return loginPassword;
    }
    public void setPaymentPassword(String paymentPassword)
    {
        this.paymentPassword = paymentPassword;
    }

    public String getPaymentPassword()
    {
        return paymentPassword;
    }
    public void setLoginPasswordStatus(Long loginPasswordStatus)
    {
        this.loginPasswordStatus = loginPasswordStatus;
    }

    public Long getLoginPasswordStatus()
    {
        return loginPasswordStatus;
    }
    public void setPaymentPasswordStatus(Long paymentPasswordStatus)
    {
        this.paymentPasswordStatus = paymentPasswordStatus;
    }

    public Long getPaymentPasswordStatus()
    {
        return paymentPasswordStatus;
    }
    public void setLoginTime(Date loginTime)
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime()
    {
        return loginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("loginPassword", getLoginPassword())
            .append("paymentPassword", getPaymentPassword())
            .append("loginPasswordStatus", getLoginPasswordStatus())
            .append("paymentPasswordStatus", getPaymentPasswordStatus())
            .append("loginTime", getLoginTime())
            .toString();
    }
}
